# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-eliot
pkgver=1.12.0
pkgrel=0
pkgdesc="Logging system that tells you why it happened"
# Requires unpackaged dask and cffi for testing journald
options="!check"
url="https://github.com/itamarst/eliot"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-six py3-zope-interface py3-pyrsistent py3-boltons
	py3-twisted"
makedepends="py3-setuptools"
checkdepends="py3-hypothesis py3-testtools py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/itamarst/eliot/archive/$pkgver.tar.gz"
builddir="$srcdir/eliot-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="d150194a115208764cc5fb94b59186f680c91da283150efee888f4d2b4521d18a9ab0b24b4f1b5b12a988e36759a996516c183ba5e9e8d4d4ab4e97f7c5ba0d1  py3-eliot-1.12.0.tar.gz"
